ImageGear Professional DLL v18.1 for Windows
Iterating through Marks
Send Feedback
ImageGear Professional v18.1 > User Guide > Using ImageGear > Annotating Images > New Annotation API: ArtX > Working with ART Marks > Iterating through Marks

Glossary Item Box

Sometimes your application will need to iterate through the marks in an HIG_ARTX_PAGE object. This can be done by using a "foreach" mechanism:

For example, to delete all the selected marks, your application would do the following:

  Copy Code
HIG_ARTX_PAGE hMark = NULL;IG_ARTX_page_mark_first(hArtPage, &hMark);
while (hMark != NULL)
{
AT_BOOL bSelected = FALSE;IG_ARTX_page_mark_is_selected(hArtPage, hMark, &bSelected);
if (bSelected)
{
...
}
}

©2014. Accusoft Corporation. All Rights Reserved.